package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.dto.RecordsDto;
import com.itheima.pojo.Records;
import com.itheima.pojo.SetmealDishes;
import com.itheima.vo.RecordsVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService {
    PageInfo<RecordsVo> page(String name, Integer page, Integer pageSize,Integer type);


    boolean save(RecordsDto recordsDto);

    RecordsVo getById(String id);

    List<SetmealDishes> getMealDishesById(String id);

    boolean delete(List<String> ids);

    boolean sell(List<String> ids, int status);

    boolean update(RecordsDto recordsDto);

    RecordsVo clientGetList(String setmealId);

    List<Records> clientgetList(String categoryId, String status);
}